package com.cskaoyan.javase.oop2._1extends._7initialization._3exercise;
/**
 * 
 * 
 * @since 21:13
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo3 {
    public static void main(String[] args) {
        Student1 s = new Student1(100, 200);
        System.out.println(s.a);
    }
}

class Person1{
    int a = 10;

    public Person1() {
    }

    public Person1(int a) {
        this.a = a;
    }
}
class Student1 extends Person1{
    int a = 100;

    public Student1(int a) {
        this.a = a;
    }

    public Student1(int a, int a1) {
        super(a);
        this.a = a1;
    }
}